package com.tedu.bill;

/**
 * Author：毕龙
 * Date: 2024/3/17 16:08
 */
public class TestOperatorTime {
    public static void main(String[] args) {
        long l1 = System.currentTimeMillis();
        int a = 0;
        for (int i = 0; i < 100000000; i++) {
            a += i;
        }
        long l2 = System.currentTimeMillis();
        System.out.println(l2-l1);
        long l3 = System.currentTimeMillis();
        int b = 0;
        for (int i = 0; i < 100000000; i++) {
            b = b + i;
        }
        long l4 = System.currentTimeMillis();
        System.out.println(l4-l3);

    }
}
